'use strict';

async function getAll(ctx, next) {
    ctx.body='获取所有用户';
}

async function getById(ctx, next) {

}
async function addItem(ctx, next) {

}
async function updateItem(ctx, next) {

}
async function delItem(ctx, next) {

}

module.exports = {
    'get /users': getAll,
    'get /users/:id': getById,
    'post /users': addItem,
    'put /users/:id': updateItem,
    'delete /users/:id': delItem,
}